<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link rel="stylesheet" href="./css/basic.css">
  <title>定位</title>
  <style> 
    .father {
        width: 200px;
        height: 200px;
        background-color: pink;
        position: relative;
    }
    .one, .two, .three, .four, .five, .six,.seven,.eight,.nine {
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background-color: blue;
    }
    .one {
        position:absolute;
        left: 10px;
    }
    .two {
        position: absolute;
        left: 80px;
    }
    .three {
        position: absolute;
        right: 10px;
    }
    .four {
        position: absolute;
        top: 80px;
        left: 10px;
    }
    .five {
        position: absolute;
        top: 80px;
        left: 80px;
    }
    .six {
        position: absolute;
        top: 80px;
        right: 10px;
    }
    .seven {
        position: absolute;
        bottom: 0;
        left: 10px;
    }
    .eight {
        position: absolute;
        bottom: 0;
        left: 80px;
    }
    .nine {
        position: absolute;
        bottom: 0;
        right: 10px;
    }
  </style>
</head>
<body>
  <div class="father">
    <div class="one"></div>
    <div class="two"></div>
    <div class="three"></div>
    <div class="four"></div>
    <div class="five"></div>
    <div class="six"></div>
    <div class="seven"></div>
    <div class="eight"></div>
    <div class="nine"></div>
  </div>
</body>
</html>